<?php


namespace app\admin\validate;


use think\Validate;

class RoomValidate extends Validate
{
    protected $rule = [
        'content|详细介绍' => 'require',
        'hotel_id|酒店' => 'require|number',
        'type_id|类型' => 'require|number',
        'deposit|定金' => 'require|number',
        'img_url|图片' => 'require',
        'price|价格' => 'require|number',
        'type|类型' => 'require',
        'describe|类型介绍' => 'require',
        'status|状态' => 'require|number'
    ];

    protected $message = [

    ];

    protected $scene = [
        'addRoom' => ['content' , 'type' , 'deposit' , 'img_url' , 'hotel_id' , 'price' , 'describe' , 'status']
    ];
}